﻿<Window x:Class="PatientsPackage.MainWindow"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:DTC="clr-namespace:DTC;assembly=DTC"
        Title="Пациены" Height="600" Width="920">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/DTC;component/Resources/Brushes.xaml"/>
                <ResourceDictionary Source="/DTC;component/Resources/ButtonsStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF515984" Offset="1"/>
            <GradientStop Color="#FF8F99D5" Offset="0"/>
            <GradientStop Color="#FF4F5573" Offset="0.406"/>
            <GradientStop Color="#FF7078A7" Offset="0.768"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="70"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid x:Name="MenuBar" 
              SnapsToDevicePixels="True" 
              VerticalAlignment="Center" 
              Grid.Row="0" 
              Margin="100,0,100,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.33*"/>
                <ColumnDefinition Width="0.33*"/>
            </Grid.ColumnDefinitions>
            <RadioButton Grid.Column="0" Name="MedRecListButton" 
							Height="50"
							Margin="6,0,6,0"
							Style="{StaticResource MenuButton}" 
							Click="MedRecListButton_Click" 
							IsChecked="False" 
							SnapsToDevicePixels="True" 
							FontSize="16" 
							FontWeight="Bold">Медицинские карты</RadioButton>
            <RadioButton Grid.Column="2" 
							Name="JournalButton" 
							Height="50" 
							Margin="6,0,6,0"
							Style="{StaticResource MenuButton}" 
							Click="JournalButton_Click" 
							SnapsToDevicePixels="True"
							 FontSize="16" 
							 FontWeight="Bold">Журнал приемов</RadioButton>
        </Grid>
        <Border Background="{StaticResource WindowBackground}"
                Grid.Row="1"
                SnapsToDevicePixels="True"
                BorderThickness="1" 
                BorderBrush="Gray"
                CornerRadius="3">
            <Frame Name="DisplayArea" NavigationUIVisibility="Hidden"
						HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
						VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"/>
        </Border>
    </Grid>
</Window>
